{# src/Pyaf/GymBundle/Resources/views/AdminRutina/new.html.twig #}
{% extends "PyafGymBundle::layout_admin.html.twig" %}

    {% block tituloSector %}<i class="icon-calendar"></i> Asistencias - Clases del día{% endblock %}
    {% block nombreSector %} Asistencias / Clases del día{% endblock %}
    {% block dashboardContent %}{% endblock %}


{% block content %}
    <div class="container-fluid" id="content-area" style="padding-right: 30px;">
        
        {% if app.session.hasFlash('alertaAsistenciaSuccess') %}
            <div class="alert alert-success">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                {{ app.session.flash('alertaAsistenciaSuccess') }}
            </div>
        {% endif %}
        {% if app.session.hasFlash('alertaAsistenciaError') %}
            <div class="alert alert-error">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                {{ app.session.flash('alertaAsistenciaError') }}
            </div>
        {% endif %}
        
        <div class="row-fluid">
            <div id="calendario"></div>
        </div>
    </div>
{% endblock %}      
    
{% block javascripts %}
    <script type='text/javascript'>
        $(document).ready(function() {              
            function showCalendario(data){                
                $('#calendario').load(data);             
            };

             showCalendario("{{ path('asistencia_calendario_show') }}");                

        });
    </script>
{% endblock %}    



